import 'package:fluttertoast/fluttertoast.dart';

showToast({required String msg, bool? cancel}) {
  if(cancel ?? false) {
    Fluttertoast.cancel();
  }
  Fluttertoast.showToast(
    msg: msg,
    toastLength: Toast.LENGTH_SHORT,
    gravity: ToastGravity.BOTTOM,
  );
}
